﻿<template>
    <p>孙元素：{{ model.name }}</p>
    <input type="text" v-model="model.name" />
    <el-button @click="test1">提交</el-button>
</template>

<script setup>
// const props = defineProps({
//     modelValue: Array,
// });
const model = defineModel();

console.log(model,'sun');

// const props = defineProps(['obj']);
const $emits = defineEmits(['test']);

const test1 = () => {
    $emits('test', '透传');
};
</script>

<style scoped lang="scss"></style>
